﻿@model CharacterCreation.Business.ViewModels.VMSkill

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@Model.Title</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Name)
        @Html.HiddenFor(model => model.XPCost)
        @Html.HiddenFor(model => model.Category)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
           @Model.Name
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.XPCost)
        </div>
        <div class="editor-field">
           @Model.XPCost
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category)
        </div>
        <div class="editor-field">
           @Model.Category
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description, new { @class = "multi-line rich-text" })
        </div>

        <p>
            <input type="submit" value="Save" class="button" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
